﻿using LinnerToolkit.Core.Mvvm;
using Mina.Core.Session;
using SimulationPTSystem.EnvironmentDevice.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimulationPTSystem.EnvironmentDevice.Models
{
    /// <summary>
    /// 设备模型
    /// </summary>
    public class DeviceModel : NotifyPropertyChanged
    {
        private byte id;
        private DeviceType type;
        private DeviceStatus status;

        /// <summary>
        /// 连接session
        /// </summary>
        public IoSession Session { get; set; }
        /// <summary>
        /// 设备编号
        /// </summary>
        public byte Id { get => id; set => SetProperty(ref id, value); }
        /// <summary>
        /// 设备类型
        /// </summary>
        public DeviceType Type { get => type; set => SetProperty(ref type, value); }
        /// <summary>
        /// 设备状态
        /// </summary>
        public DeviceStatus Status { get => status; set => SetProperty(ref status, value); }
    }
}
